<?php
namespace Admin\Model;
use Think\Model\RelationModel;
class UserModel extends RelationModel {
        protected $_validate = array(
        	array('mobile','require','手机号必填'),
        	array('user_name','require','用户名必填'),
        	array('password','require','密码必填'),
        	//array('mobile','','此手机号已经注册过了,请输入新的手机号',1,'unique',1),

        );
        protected $_auto = array (
        	array('add_time','time',1,'function')
        );
}